package com.ethink.order.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
import java.math.BigDecimal;
import com.ethink.framework.common.db.SuperEntity;

/**
 * 销售需求详情单 数据库实体
 *
 * @author default
 * @date 2022-11-04
 */
@Data
@TableName("t_sale_demand_order_detail")
public class SaleDemandOrderDetail extends SuperEntity {


    public static final String ORDER_NO ="order_no";

    public static final String DETAIL_ORDER_NO ="detail_order_no";

    public static final String DETAIL_ORDER_STATUS ="detail_order_status";

    public static final String IS_LOCK ="is_lock";

    public static final String MATE_CODE ="mate_code";

    public static final String MATE_NAME ="mate_name";

    public static final String MATE_SKU ="mate_sku";

    public static final String MATE_SKU_NAME ="mate_sku_name";

    public static final String GENERA_CODE ="genera_code";

    public static final String GENERA_CODE_NAME ="genera_code_name";

    public static final String MINOR_DEFECTS_CODE ="minor_defects_code";

    public static final String MINOR_DEFECTS_CODE_NAME ="minor_defects_code_name";

    public static final String SUBCLASS_CODE ="subclass_code";

    public static final String SUBCLASS_CODE_NAME ="subclass_code_name";

    public static final String CATEGORY_NAME ="category_name";

    public static final String BRAND_CODE ="brand_code";

    public static final String BRAND_NAME ="brand_name";

    public static final String INTERNATION_CODE ="internation_code";

    public static final String UNIT_CODE ="unit_code";

    public static final String UNIT_NAME ="unit_name";

    public static final String PRODUCT_SPECIFICATION ="product_specification";

    public static final String DEMAND_QTY ="demand_qty";

    public static final String DEMAND_AFFIRM_QTY ="demand_affirm_qty";

    public static final String WORST_DEMAND_PERIOD ="worst_demand_period";

    public static final String DEMAND_PERIOD ="demand_period";

    public static final String END_TIME ="end_time";

    public static final String EXCEPT_SALE_PRICE_TAX ="except_sale_price_tax";

    public static final String EXCEPT_SALE_PRICE_NO_TAX ="except_sale_price_no_tax";

    public static final String EXCEPT_SALE_PRICE_NO_TAX_LOCAL ="except_sale_price_no_tax_local";

    public static final String EXCEPT_SALE_PRICE_TAX_LOCAL ="except_sale_price_tax_local";

    public static final String TARGET_COST_LOCAL ="target_cost_local";

    public static final String AVERAGE_PURCHASE_PRICE ="average_purchase_price";

    public static final String EXCEPT_GROSS_PROFIT ="except_gross_profit";

    public static final String TOTAL_QTY ="total_qty";

    public static final String PURCHASING_QTY ="purchasing_qty";

    public static final String TAX_RATE ="tax_rate";

    public static final String DISCOUNT ="discount";


    /** 销售需求单号 */
    private String orderNo;

    /** 销售需求详情单号 */
    private String detailOrderNo;

    /** 枚举 订单状态:1-未锁单(s1)|2-已锁单(s2)|3-确认采购(s3) */
    private Integer detailOrderStatus;

    /** 是否锁单 */
    private Boolean isLock;

    /** 商品编码 */
    private String mateCode;

    /** 商品名称 */
    private String mateName;

    /** 商品SKU */
    private String mateSku;

    /** 商品SKU名称 */
    private String mateSkuName;

    /** 大类编号 */
    private String generaCode;

    /** 大类编号名称 */
    private String generaCodeName;

    /** 中类编号 */
    private String minorDefectsCode;

    /** 中类编号名称 */
    private String minorDefectsCodeName;

    /** 小类编号 */
    private String subclassCode;

    /** 小类编号名称 */
    private String subclassCodeName;

    /** 商品分类 */
    private String categoryName;

    /** 品牌编码 */
    private String brandCode;

    /** 品牌名称 */
    private String brandName;

    /** 商品条码 */
    private String internationCode;

    /** 包装单位编码 */
    private String unitCode;

    /** 包装单位编码 */
    private String unitName;

    /** 商品规格 */
    private String productSpecification;

    /** 需求数量 */
    private Integer demandQty;

    /** 需求确认数量 */
    private Integer demandAffirmQty;

    /** 最差生产日期 */
    private Date worstDemandPeriod;

    /** 需求交期 */
    private Date demandPeriod;

    /** 截单日期 */
    private Date endTime;

    /** 预计销售价(含税) */
    private BigDecimal exceptSalePriceTax;

    /** 预计销售价(不含税) */
    private BigDecimal exceptSalePriceNoTax;

    /** 预计销售价-本币(不含税) */
    private BigDecimal exceptSalePriceNoTaxLocal;

    /** 预计销售价-本币(含税) */
    private BigDecimal exceptSalePriceTaxLocal;

    /** 目标成本-本币 */
    private BigDecimal targetCostLocal;

    /** 采购成本-本币 */
    private BigDecimal averagePurchasePrice;

    /** 预计毛利 */
    private BigDecimal exceptGrossProfit;

    /** 库存总数 */
    private Integer totalQty;

    /** 在途采购数量 */
    private Integer purchasingQty;

    /** 税率 */
    private BigDecimal taxRate;

    /** 折扣 */
    private BigDecimal discount;

}
